package cn.edu.nju.freshdelivery.service;

import java.util.List;

import javax.annotation.Resource;

import cn.edu.nju.freshdelivery.dao.OrderDAO;
import cn.edu.nju.freshdelivery.model.Buyer;
import cn.edu.nju.freshdelivery.model.Order;
import cn.edu.nju.freshdelivery.model.Seller;

public interface OrderService {

	public OrderDAO getOrderDAO();

	@Resource
	public void setOrderDAO(OrderDAO orderDAO);

	public void add(Order order);

	public List<Order> findByBuyer(Buyer buyer);

	public List<Order> findBySeller(Seller seller);

	public Order findById(int id);

}